package wechat

import "crmeb-common/global"

// PayComponentProductSku 组件商品sku表
type PayComponentProductSku struct {
	global.BaseModel
	ProductId int32 `json:"productId" gorm:"column=product_id;comment:商品ID"`

	ComponentProductId int32 `json:"componentProductId" gorm:"column=component_product_id;comment:交易组件平台内部商品ID"`

	SkuId string `json:"skuId" gorm:"column=sku_id;comment:交易组件平台自定义skuID"`

	ThumbImg string `json:"thumbImg" gorm:"column=thumb_img;comment:sku小图"`

	SalePrice int64 `json:"salePrice" gorm:"column=sale_price;comment:售卖价格,以分为单位"`

	MarketPrice int64 `json:"marketPrice" gorm:"column=market_price;comment:市场价格,以分为单位"`

	StockNum int32 `json:"stockNum" gorm:"column=stock_num;comment:库存"`

	Barcode string `json:"barcode" gorm:"column=barcode;comment:条形码"`

	SkuCode string `json:"skuCode" gorm:"column=sku_code;comment:商品编码"`

	Sku string `json:"sku" gorm:"column=sku;comment:sku"`

	AttrValueId int32 `json:"attrValueId" gorm:"column=attr_value_id;comment:商品规格属性id"`

	Version int32 `json:"version" gorm:"column=version;comment:并发版本控制"`
}
